<!DOCTYPE html>	
<?php session_start();?>
<head>
<meta charset="ISO-8859-1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>INGRESO</title>
</head>
<html>
    <body>
        <form method="post" name="formulario" action="events/EventLogin.php" autocomplete="off">
        <input type="hidden" name="accion">
   	    <div align="center"> 
             <h1 id="titulo">HISTORIAL CL&Iacute;NICO</h1>
             <h2 id="nombreDoctor">Dr. Pedro Alfonso Ochoa Mart&iacute;nez</h2>
             <table class="margen">
            <tr>
                <td><img src="images/login.png" width="120" height="120"></td>
                <td>
                    <table>
                        <tr>
                            <td><label class="etiqueta">usuario</td>
                            <td><input type="text" name="usuario" required></td>
                        </tr>
                        <tr>
                           <td><label class="etiqueta">CONTRASE&Ntilde;A</td>
                            <td><input type="password" name="password" required></td> 
                        </tr>
                        <tr>
                            <td><input class="aceptar" type="submit" name="ingresar" id="ingresar" value="INGRESAR"> </td>
                            <td><input  class="accion" type="submit" name="registrar" id="registrar" value="REGISTRAR" onClick="document.formulario.accion.value = 'registrar'"></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
            <br>
				<?php
                if(isset($_GET['mensajeLogin']))
                {
		                    echo '<label class="error">USUARIO O CONTRASE&Ntilde;A INCORRECTA</label>';
							session_write_close();
                }
                ?>
            </div>
    	</form>
        
    </body>
</html>